package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysLabel;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/13 18:37
 * @Version v1.0
 */
public interface SysLabelServiceApi {
    /** 
     * @description: 标签后端分页查询
     * @param: [sysLabel, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysLabel>
     * @author hhk
     * @date: 2024/11/13 18:53
     */ 
    @PostMapping(value = "/sysLabel/findSysLabelPagimationList")
    public PagedResponse<SysLabel> findSysLabelPagimationList(@RequestBody SysLabel sysLabel, @RequestParam(value = "pageNum") Integer pageNum,@RequestParam(value = "pageSize") Integer pageSize);
    /** 
     * @description: 新增标签
     * @param: [sysLabel]
     * @return: void
     * @author hhk
     * @date: 2024/11/13 18:54
     */ 
    @PostMapping(value = "/sysLabel/addSysLabel")
    public void addSysLabel(@RequestBody SysLabel sysLabel);
    /** 
     * @description: 根据id删除一条信息
     * @param: [labelId]
     * @return: void
     * @author hhk
     * @date: 2024/11/13 18:55
     */ 
    @DeleteMapping(value = "/sysLabel/deleteSysLabelByLabelId")
    public void deleteSysLabelByLabelId(@RequestParam Long labelId);
    /** 
     * @description: 根据id回显一条信息
     * @param: []
     * @return: com.jk.smartelderlycare.dto.SysLabel
     * @author hhk
     * @date: 2024/11/13 18:56
     */ 
    @GetMapping(value = "/sysLabel/findSysLabelByLabelId")
    public SysLabel findSysLabelByLabelId(@RequestParam Long labelId);
    /** 
     * @description: 修改标签列表
     * @param: [sysLabel]
     * @return: void
     * @author hhk
     * @date: 2024/11/13 18:57
     */ 
    @PutMapping(value = "/sysLabel/updataSysLabel")
    public void updataSysLabel(@RequestBody SysLabel sysLabel);
    /**
     * @description: 状态修改
     * @param:
     * @return:
     * @author hhk
     * @date: 2024/11/14 16:00
     */
    @PutMapping(value = "/sysLabel/updateStatus")
        public void updateStatus(@RequestBody SysLabel sysLabel);
    
    
    
    
    
    
}
